import request from '@/utils/request'

// 查询版本更新记录列表
export function listVersionInfo(query) {
  return request({
    url: '/smartHighway/versionInfo/list',
    method: 'get',
    params: query
  })
}

// 查询版本更新记录详细
export function getVersionInfo(versionId) {
  return request({
    url: '/smartHighway/versionInfo/' + versionId,
    method: 'get'
  })
}

// 新增版本更新记录
export function addVersionInfo(data) {
  return request({
    url: '/smartHighway/versionInfo',
    method: 'post',
    data: data
  })
}

// 修改版本更新记录
export function updateVersionInfo(data) {
  return request({
    url: '/smartHighway/versionInfo',
    method: 'put',
    data: data
  })
}

// 删除版本更新记录
export function delVersionInfo(versionId) {
  return request({
    url: '/smartHighway/versionInfo/' + versionId,
    method: 'delete'
  })
}
